<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="fullscreen">
        <div class="scroll_content">
            <div class="topfixed">
                <div class="t_left"><a href="/index.php?m=show&id={$cyitem.id}"><i class="back"></i></a></div>
                <div class="t_main">加入项目</div>
            </div>
            <div class="paddingheight"></div>
            <div class="comblock">
            	<form id="join-form" method="post">
                <input type="hidden" name="cyid" value="{$cyitem.id}">
                <div class="project_add_box">
                    <ul class="list">
                        <li><input type="text" class="inp" name="nickname" value="{$data.nickname}" placeholder="请输入你的姓名"></li>
                        <li><input type="text" class="inp" name="telephone" value="{$data.telephone}" placeholder="请输入你的电话"></li>
                        <li><input type="text" class="inp" name="banji" value="{$data.banji}" placeholder="请输入专业班级"></li>
                        <li><textarea placeholder="自我介绍" name="info" class="area">{$data.info}</textarea></li>
                    </ul>
                </div>
                </form>
            </div>
            <button class="cart_change_btn" id="cyitem-join-submit">提交</button>
        </div>
    </div>
  <script>
  $(function(){
	 $(document).on("click","#cyitem-join-submit",function(data){
		$.post("/index.php?m=cyitem&a=joinsave&ajax=1&id={$c.id}",$("#join-form").serialize(),function(data){
			if(data.error){
				skyToast(data.message);
			}else{
				skyToast('加入成功');
				setTimeout(function(){
					window.location="/index.php?m=show&id={$cyitem.id}";
				},1000);
			}
		},"json") 
	 });
  });
    
  </script>
</body>
</html>
